JavaScript

A5.u.arrayremove Method

Syntax

A5.u.array.remove(array,indexes)

Arguments

arrayarray

The array to remove items in.

indexesarray

The array of indexes to remove.

Returns

removedarray

The items removed from the array.

Description

Remove the items with the given indexes from the array.

Example

var a = ['a','b','c','d','e','f','g','h','i'];
var removed = A5.u.array.remove(a,[3,-1,5]);
// a = ["a","b","c","e","g","h"]
// removed = ["i","f","d"]